﻿<UserControl x:Class="InnerTube.MediaPlayer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="398" Width="437.734">
    
    <UserControl.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Resources\PlayButton.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
    </UserControl.Resources>

        <Grid>
        <Image Grid.ZIndex="1"  Margin="5,0,5,73" Name="PreviewImage" ></Image>
            <MediaElement Grid.ZIndex="0" Margin="5,0,5,73" Name="VideoPlayer" LoadedBehavior="Manual"></MediaElement>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
            <ToggleButton Margin="0,0,0,10"  Height="50" Width="50" Name="PlayButton"
                          Style="{StaticResource PlayButton}" 
                          Click="Play">                
                <Path Data="F1M149.333,406L149.333,598 317.333,502 149.333,406z" Fill="#80000000" Height="14" Margin="4,0,0,0" Name="Path" Stretch="Fill" Width="14" />
            </ToggleButton>
            </StackPanel>
        
    </Grid>
</UserControl>
